Skip to content

How to use the latest version? #333

Description

Hi,

I recently saw that the older packages of coyote got deprecated.
I was using something like this:

public void AnalyzeCommandBase_ShouldGenerateSameResultsWhenRunningSingleAndMultithreaded_CoyoteTest()
        {
            Configuration config = Configuration.Create().WithTestingIterations(100).WithConcurrencyFuzzingEnabled();
            var engine = TestingEngine.Create(config, AnalyzeCommandBase_ShouldGenerateSameResultsWhenRunningSingleAndMultiThread_CoyoteHelper);
            string TestLogDirectory = ".";

            engine.Run();
            TestReport report = engine.TestReport;

            var filenames = new List<string>(engine.TryEmitTraces(TestLogDirectory, "AnalyzeCommandBase_ShouldGenerateSameResultsWhenRunningSingleAndMultiThread_CoyoteTest_Log"));
            foreach (string item in filenames)
            {
                Output.WriteLine("See log file: {0}", item);
            }

            Assert.True(report.NumOfFoundBugs == 0, $"Coyote found {report.NumOfFoundBugs} bug(s).");
        }

The issues:

  • WithConcurrencyFuzzingEnabled got removed and I don't see any documentation on what to replace it with.
  • TryEmitTraces got removed and I don't see any documentation on what to replace it with.

Activity

  1. eddynaka commented on Apr 26, 2022

    @eddynaka
    Author

    I was using the version 1.3.1

  2. pdeligia commented on Apr 26, 2022

    @pdeligia
    Member

    Thanks Eddy Nakamura (@eddynaka), these were indeed renamed/refactored in recent versions, you can replace them as follows:

    • WithConcurrencyFuzzingEnabled is now called WithSystematicFuzzingEnabled.
    • TryEmitTraces is now called TryEmitReports.

    Hope this helps!

  3. pdeligia commented on Apr 28, 2022

    @pdeligia
    Member

    Closing for now, but if you have more questions please open an issue.

  4. locked and limited conversation to collaborators on Oct 17, 2022
  5. converted this issue into a discussion #389 on Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions