Skip to content

Commit

Permalink
Add test infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
fedgiac committed Jan 25, 2024
1 parent 4e08087 commit 01e68f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ libs = ["lib"]
remappings = [
"lib/composable-cow:cowprotocol/=lib/composable-cow/lib/cowprotocol/src/contracts/",
"lib/composable-cow:safe/=lib/composable-cow/lib/safe/contracts/",
"lib/composable-cow:@openzeppelin/=lib/composable-cow/lib/@openzeppelin/contracts/",
"lib/composable-cow:@openzeppelin/contracts/=lib/composable-cow/lib/@openzeppelin/contracts/",
]

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
16 changes: 14 additions & 2 deletions test/ConstantProduct.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {Test} from "forge-std/Test.sol";
import {IERC20} from "lib/composable-cow/lib/@openzeppelin/contracts/interfaces/IERC20.sol";
import {BaseComposableCoWTest} from "lib/composable-cow/test/ComposableCoW.base.t.sol";

import {ConstantProduct} from "../src/ConstantProduct.sol";

contract CounterTest is Test {}
contract E2eCounterTest is BaseComposableCoWTest {
ConstantProduct constantProduct;
address safe;

function setUp() public virtual override(BaseComposableCoWTest) {
super.setUp();

constantProduct = new ConstantProduct();
}
}

0 comments on commit 01e68f4

Please sign in to comment.