Skip to content

Error when using a unit test with readonly code blocks #263

@jimbobbennett

Description

@jimbobbennett

Describe the bug

Create a unit test project. Add code blocks for the test and the code under test using the same session.

Run this and it works.

Mark the test code as --editable false and run it again. The code doesn't run and gives an error about duplicate code.

There is a reproduction at github.com/jimbobbennett/TryDotNetUnitTests-ErrorWithReadonly. Run this code with dotnet try and you will see the error. Remove --editable false from README.MD and relaunch dotnet try and it all works.

Did this error occur while using dotnet try or online?

  • dotnet-try
  • online

What kind of error was it?

  • User Interface (UI): For example the output never displayed
  • Service Error: For example "The service is temporarily unavailable. We are working on it"
  • Other:

Screenshots

2019-06-07_17-51-44

Please complete the following:

  • OS
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Safari

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions