ardatan / meteor-webpack

https://medium.com/@ardatan/meteor-with-webpack-in-2018-faster-compilation-better-source-handling-benefit-from-bc5ccc5735ef
MIT License
123 stars 29 forks source link

'Meteor test' seems not working #67

Open kadensungbincho opened 5 years ago

kadensungbincho commented 5 years ago

I tried to test meteor with meteor test --driver-package meteortesting:mocha --test-app-path $(pwd)/.meteortest

but it endlessly showed

I20190408-11:20:22.005(9)? --------------------------------
I20190408-11:20:22.006(9)? ----- RUNNING SERVER TESTS -----
I20190408-11:20:22.006(9)? --------------------------------
I20190408-11:20:22.006(9)? 
I20190408-11:20:22.006(9)? 
I20190408-11:20:22.006(9)? 
I20190408-11:20:22.007(9)?   0 passing (0ms)
I20190408-11:20:22.007(9)? 
I20190408-11:20:22.007(9)? Load the app in a browser to run client tests, or set the TEST_BROWSER_DRIVER environment variable. See https://github.com/meteortesting/meteor-mocha/blob/master/README.md#run-app-tests
=> Exited with code: 0

I currently installed meteor packages like

# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-base@1.4.0             # Packages every Meteor app needs to have
mobile-experience@1.0.5       # Packages for a great mobile UX
mongo@1.6.0                   # The database Meteor supports right now
reactive-var@1.0.11            # Reactive variable for tracker
tracker@1.2.0                 # Meteor's client-side reactive programming library

standard-minifier-js@2.4.0    # JS minifier run for production mode
shell-server@0.4.0            # Server-side component of the `meteor shell` command

insecure@1.0.7                # Allow all DB writes from clients (for prototyping)
react-meteor-data       # React higher-order component for reactively tracking Meteor data
http
meteorhacks:picker@1.0.3
meteortesting:browser-tests@1.0.0
meteortesting:mocha@1.1.0
meteortesting:mocha-core@1.0.1
ardatan:webpack
ardatan:webpack-dev-middleware
accounts-ui
accounts-password
session
juliancwirko:postcss

I tried other meteor test driver like praticalmeteor but it didn't work. Should I change something? I expect the web reporters view when I open localhost:3000

alexmarczinek commented 5 years ago

I'm also having the issue that meteor test hangs up after running server tests. In my case it started working again after removing "@import '~bootstrap/scss/bootstrap';" in my main .scss and using the precompiled bootstrap.css. So my guess is that it is some issue with css.

jthomaschewski commented 4 years ago

Same here. Meteor/Mocha doesn't seem to find any tests when ardatan webpack package is enabled. This can be reproduced with example "react" from this repo.

Removing (s)css-imports didn't fix the issue for me, have you found any solution/workaround in the meantime, @kadensungbincho @Shiadra ?

mathieustan commented 4 years ago

Same issue here. @ardatan Do you have any idea ? I'll maybe check locally to find