asp.netasp.net-corexunitdnxdnu

Not able to exit the code after successfully run the test case


I am trying to publish the asp.net vNext project via travis CI where the yml file is as given below. Where the solution is build properly and after running the test case it waiting for the user input i guess. Kindly help is resolving the same.

language: CSharp
mono:
  - latest
install:
  - curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
  - dnvm upgrade
  - dnu restore
script:
  - cd src/WebApiSample/  && dnu build
  - cd - && cd src/Sample.XUnit/ && dnu restore
  - dnx test
deploy:
     edge: true
     provider: cloudfoundry
     username: myemailid@yahoo.co.in
     password: *******
     api: https://api.run.pivotal.io
     organization: mysampleorg
     space: development

Travis stuck at this line as given below

=== TEST EXECUTION SUMMARY ===
   MyFirstDnxUnitTests  Total: 5, Errors: 0, Failed: 0, Skipped: 0, Time: 0.176s

Solution

  • According to https://github.com/xunit/xunit/issues/604, that's a known bug in dnx with mono. you should add -parallel none to your dnx test command and everything should work as expected. Note that this is a workaround