testomatio / app

Testomat.io is a simplified test management system for your automated tests. Issues, project board & documentation. app.testomat.io
https://app.testomat.io
27 stars 2 forks source link

tests importing and executions failed on win10, 64 bit #150

Closed poliarush closed 4 years ago

poliarush commented 4 years ago
  1. on beta
  2. used cmd
  3. used set TESTOMATIO_URL=https://beta.testomat.io

codecept.js

import

C:\examples\codeceptJS>set TESTOMATIO=xdk13b86cjt1 && npx check-tests@latest CodeceptJS "**/*{.,_}{test,spec}.js"

failed

= codepress demo
  - Create some todo items @smoke
SKIPPED 1 TESTS:
- Create a new todo item node_modules\check-tests\example\codeceptjs\create_todos_test.js:10
TOTAL 28 TESTS FOUND
 � Sending data to testomat.io
 ✖️  [Data error] Suite 25e19ba9 not found in project '1. code.js'

failed, without space also doesn't work

C:\examples\codeceptJS>set TESTOMATIO=xdk13b86cjt1&& npx check-tests@latest CodeceptJS "**/*{.,_}{test,spec}.js"

execution

failed, it's not executed with space

C:\examples\codeceptJS>set TESTOMATIO=wp9eb4de1iqw && npx codeceptjs run

passed, and it's executed without space

C:\examples\codeceptJS>set TESTOMATIO=wp9eb4de1iqw&& npx codeceptjs run

image

codecept.js + bdd

import

failed, can't execute it

C:\examples\codeceptjs-cucumber>set TESTOMATIO=xwne1e20frgw && npx check-cucumber@latest --codeceptjs "**/*.feature" --dir todomvs-tests\features
 � Cucumber checker by testomat.io

 �️  Parsing files

Can't find any tests in this folder
Change file pattern or directory to scan to find test files:

Usage: npx check-cucumber -d[directory]

C:\examples\codeceptjs-cucumber>set TESTOMATIO=xwne1e20frgw && npx check-cucumber@latest --codeceptjs "**/*.feature" --dir todomvs-tests/featues
 � Cucumber checker by testomat.io

 �️  Parsing files

Can't find any tests in this folder
Change file pattern or directory to scan to find test files:

Usage: npx check-cucumber -d[directory]

C:\examples\codeceptjs-cucumber>set TESTOMATIO=xwne1e20frgw && npx check-cucumber@latest --codeceptjs "**/*.feature" --dir todomvs-tests/features
 � Cucumber checker by testomat.io

 �️  Parsing files

Can't find any tests in this folder
Change file pattern or directory to scan to find test files:

Usage: npx check-cucumber -d[directory]

C:\examples\codeceptjs-cucumber>set TESTOMATIO=xwne1e20frgw && npx check-cucumber@latest --codeceptjs "**/*.feature" --dir todomvs-tests/features/
 � Cucumber checker by testomat.io

 �️  Parsing files

Can't find any tests in this folder
Change file pattern or directory to scan to find test files:

Usage: npx check-cucumber -d[directory]

image

execution

failed, can't execute it with space or without space

C:\examples\codeceptjs-cucumber>set TESTOMATIO=fe8cd0ea6z65 && npx cucumber-js --format ./node_modules/@testomatio/reporter/lib/adapter/cucumber.js

image

jest

import

fine

C:\examples\jest>set TESTOMATIO=c3j7bd9f0vxt && npx check-tests@latest Jest "**/*{.,_}{test,spec}.js"

image

execution

failed with space, passed without space

C:\examples\jest>set TESTOMATIO=c3j7bd9f0vxt && npx jest

 RUNS  DataStructure/singly-linked-list/singlyLinkedList.test.js
 RUNS  DataStructure/binary-search-tree/binarySearchTree.test.js
 RUNS  DataStructure/sort/sort.test.js

Test Suites: 0 of 31 total
Tests:       0 total
Snapshots:   0 total
Time:        0s
C:\examples\jest>set TESTOMATIO=c3j7bd9f0vxt&& npx jest
 PASS  DataStructure/sort/sort.test.js
 PASS  DataStructure/binary-search-tree/binarySearchTree.test.js
 PASS  DataStructure/singly-linked-list/singlyLinkedList.test.js
 PASS  Algorithms/animal-sort/animalSort.test.js
 PASS  Algorithms/negative-index/negativeIndex.test.js
 PASS  DataStructure/heap/heap.test.js
 PASS  Algorithms/least-common-multiple/leastCommonMultiple.test.js
 PASS  Algorithms/largest-substring/lengthOfSubstring.test.js
 PASS  Algorithms/threesum/threeSum.test.js
 PASS  Algorithms/goat-latin/goatLatin.test.js
 PASS  Algorithms/sum-of-perfect-square/sumOfPerfectSquare.test.js
 PASS  Algorithms/can-place-flowers/canPlaceFlowers.test.js
 PASS  Algorithms/fizz-buzz/fizzBuzz.test.js
 PASS  Algorithms/reverse-integer/reverseInteger.test.js
 PASS  Algorithms/exce-column-title/excelCount.test.js
 PASS  Algorithms/longest-palindrome/longestPalindrom.test.js
 PASS  Algorithms/remove-duplicate-sorted-array/removeDuplicate.test.js
 PASS  Algorithms/group-people/groupPeople.test.js
 PASS  Algorithms/container-with-most-water/containerWithMostWater.test.js
 PASS  Algorithms/find-all-duplicates/findDuplicate.test.js
 PASS  Algorithms/largest-number/largestNumber.test.js
 PASS  Algorithms/find-duplicate/findDuplicate.test.js
 PASS  Algorithms/remove-element/removeElement.test.js
 PASS  Algorithms/two-sum/two-sum.test.js
 PASS  Algorithms/flight-booking/flightBooking.test.js
 PASS  Algorithms/robot-return-to-origin/robot.test.js
 PASS  Algorithms/min-path-sum/minPathSum.test.js
 PASS  Algorithms/stone-game/stoneGame.test.js
 PASS  Algorithms/jewels-and-stones/jewelAndStone.test.js
 PASS  Algorithms/two-sum-2/twoSum.test.js
 PASS  sample/sample.test.js

Test Suites: 31 passed, 31 total
Tests:       56 passed, 56 total
Snapshots:   0 total
Time:        5.183s
Ran all test suites.
Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.

image

testcafe

import

FAILED

C:\examples\testcafe>set TESTOMATIO=hryf4d2c8abx && npx check-tests@latest TestCafe "**/*{.,_}{test,spec}.js"

NOR

C:\examples\testcafe>set TESTOMATIO=hryf4d2c8abx&& npx check-tests@latest TestCafe "**/*{.,_}{test,spec}.js"

image

execution

failed with space

C:\examples\testcafe>set TESTOMATIO=v51362217v5w && npx testcafe chrome -r testomatio
C:\examples\testcafe>set TESTOMATIO=v51362217v5w && npx testcafe chrome -r testomatio
TestCafe started with:  [ 'Chrome 83.0.4103.97 / Windows 10' ]
Suite : Fixture
[Testomatio] Error creating a test run on testomat.io, please check if your API key is valid

passed without space

C:\examples\testcafe>set TESTOMATIO=v51362217v5w&& npx testcafe chrome -r testomatio

image

cypress

import

fine

C:\examples\cypress>set TESTOMATIO=x8k7ebcda9c6 && npx check-tests@latest Cypress.io "**/*{.,_}{test,spec}.js"

image

execution

fine

C:\examples\cypress>npx cypress run -r ./node_modules/@testomatio/reporter/lib/adapter/mocha.js --reporter-options apiKey=x8k7ebcda9c6

image

poliarush commented 4 years ago

to be tested

poliarush commented 4 years ago

@DavertMik please restest before release

DavertMik commented 4 years ago

Fixed all imports on Windows. Removed space from all our instructions on import.

This leads to the only bug:

You were using cucumber-js instead of codeceptjs here, so this was a problem:

C:\examples\codeceptjs-cucumber>set TESTOMATIO=fe8cd0ea6z65 && npx cucumber-js --format ./node_modules/@testomatio/reporter/lib/adapter/cucumber.js