1

I have this contract:

contract('MetaCoin', (accounts) => {
  it('should put 10000 MetaCoin in the first account', async () => {
    const metaCoinInstance = await MetaCoin.deployed();
    const balance = await metaCoinInstance.getBalance.call(accounts[0]);
    assert.equal(balance.valueOf(), 10000, "10000 wasn't in the first account");
  });



  it("thing test", async () => {
    const thing = await Thing.deployed();
    const res = await thing.specialThing.call(2, { from: accounts[0] });
    assert.equal(res, 200, "10000 wasn't in the first account");

  });

I'd like to specifically test thing test -- how do I do that with truffle?

1 Answer 1

2

Change this:

it("thing test", async () => {

To this:

it.only("thing test", async () => {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.