Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Many tests are not run #89

Open
otakustay opened this issue May 18, 2013 · 1 comment
Open

Many tests are not run #89

otakustay opened this issue May 18, 2013 · 1 comment

Comments

@otakustay
Copy link

Below I would describe a interesting behavior saga shows, the reproduce steps are:

  1. git clone git://github.com/ecomfe/esui.git
  2. cd esui/test
  3. java -jar <saga-cli.jar> -b . -o ./target [-v CHROME/FIREFOX_17/INTERNET_EXPLORER_9]
  4. View the report

I got 3 different result set with 3 different browser, in FIREFOX_17 whcih is the default value of -v arg, it gives an about 80% coverage, but with CHROME I got just 15%.

I don't think such low coverage is normal, so I inpected the result and found when using CHROME as the browser, almost nothing runs.

image

Since we use a custom AMD loader to load test asynchronously, I suppose that saga collects coverage result when page's onload event fires, but our jasmine tests run after onload so is ignored by saga, but this did not explain why FIREFOX_17 got high coverage result.

@timurstrekalov
Copy link
Owner

If you are using AMD, that would be the problem, since there's still a ticket (#42) open for AMD support. AMD experts are welcome to grab it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants