Execute JavaScript from within a C# assembly

后端 未结 6 2154
既然无缘
既然无缘 2021-02-05 07:08

I\'d like to execute JavaScript code from within a C# assembly and have the results of the JavaScript code returned to the calling C# code.

It\'s easier to define things

6条回答
  •  佛祖请我去吃肉
    2021-02-05 07:36

    You can run your JSUnit from inside Nant using the JSUnit server, it's written in java and there is not a Nant task but you can run it from the command prompt, the results are logged as XML and you can them integrate them with your build report process. This won't be part of your Nunit result but an extra report. We fail the build if any of those test fails. We are doing exactly that using CC.Net.

提交回复
热议问题