Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't load tests to runner #1618

Closed
miecio1212 opened this issue Jul 17, 2017 · 2 comments
Closed

can't load tests to runner #1618

miecio1212 opened this issue Jul 17, 2017 · 2 comments
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. STATE: Duplicate An issues has been already reported in the other thread.

Comments

@miecio1212
Copy link

Are you requesting a feature or reporting a bug?

bug

What is the current behavior?

Error: Cannot find a test source file at

What is the expected behavior?

I can't use glob or *.spec.js I have to write particular test name

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

const createTestCafe = require('testcafe')
let testcafe = null

createTestCafe('localhost', 1337, 1338)
  .then(tc => {
    testcafe = tc
    const runner = testcafe.createRunner()
    return runner
      .src(['tests/e2e/specs/test1.spec.js']) // I'd like to use tests/e2e/specs/*.spec.js
      .browsers(['chrome'])
      .run()
  })
  .then(failedCount => {
    console.log('Tests failed: ' + failedCount)
    testcafe.close()
  })

Specify your

  • operating system: windows 8.1
  • testcafe version: "testcafe": "^0.16.2",
  • node.js version: v6.9.3
@inikulin inikulin added the STATE: Duplicate An issues has been already reported in the other thread. label Jul 17, 2017
@inikulin
Copy link
Contributor

Duplicate of #980

@inikulin inikulin marked this as a duplicate of #980 Jul 17, 2017
@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. STATE: Duplicate An issues has been already reported in the other thread.
Projects
None yet
Development

No branches or pull requests

2 participants