我正在研究BDD文件并尝试使用JUnit进行测试.
我想在@RunWith(Cucumber.class)中使用RunCukesTest类.
我在许多网站上搜索了如何安装需求,但我找不到任何网站,一步一步简要解释.
你可以一步一步地向我解释一下,我该如何进行测试?
package test.newtest;
import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
public class RunCukesTest {
}
Run Code Online (Sandbox Code Playgroud) 我有个问题:
在NXC中有这样的结构函数:
struct colorType
{
int colorval;
unsigned int rawRed;
unsigned int rawGreen;
unsigned int rawBlue;
unsigned int normRed;
unsigned int normGreen;
unsigned int normBlue;
};
colorType cubeColor[6*9];
Run Code Online (Sandbox Code Playgroud)
我在F#中创建了相同的结构,如下所示:
type colorType =
struct
val colorval: int
val rawRed: uint16
val rawGreen: uint16
val rawBlue: uint16
val normRed: uint16
val normGreen: uint16
val normBlue: uint16
end
Run Code Online (Sandbox Code Playgroud)
但我不知道如何调用colorType cubeColor [6*9]; 在F#中.
你可以帮我解决这个案子吗?
谢谢.